package com.gateway.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author Huangkai
 */
@EnableAsync
@EnableConfigurationProperties
@EnableDiscoveryClient
@SpringBootApplication
@MapperScan("com.gateway.system.mapper")
@ComponentScan(basePackages = {
        "com.gateway.admin",
        "com.gateway.config",
        "com.gateway.common",
        "com.gateway.system"
})
public class GatewayApplication {
    public static void main(String[]args){
        SpringApplication.run(GatewayApplication.class, args);
    }
}
